<?php
class view{
	public function render($name)
	{
		if(!file_exists(VIEW.$name.".php"))
			{
				$error_name=$name.'.php';
				$folder=VIEW;
				include(PUBLICS.'errors.php');
			  	die();
			}
			else
			{
			  	require VIEW.$name.".php";	
			}		
	}
	
}

?>